var obj = Object.freeze({
    id: {
        name: 2
    }
})

function A(_obj) {
    return _obj.id;
}
obj.id = 20
console.log(A(obj));
console.log(A(obj));